import request from '@/utils/request'

// 查询园林巡查计划列表
export function listPatrolPlan(query) {
    return request({
        url: '/comp/patrolPlan/list',
        method: 'get',
        params: query
    })
}
// 查询巡查预警
export function queryPatrolWarning(query) {
    return request({
        url: '/comp/patrolPlan/queryPatrolWarning',
        method: 'get',
        params: query
    })
}
// 查询巡查概览
export function queryPatrolOverview(query) {
    return request({
        url: '/comp/patrolPlan/queryPatrolOverview',
        method: 'get',
        params: query
    })
}
// 查询巡查录入
export function queryPatrolEnter(query) {
    return request({
        url: '/comp/patrolPlan/queryPatrolEnter',
        method: 'get',
        params: query
    })
}
// 查询已完成巡查计划
export function queryFulfillPatrol(query) {
    return request({
        url: '/comp/patrolPlan/queryFulfillPatrol',
        method: 'get',
        params: query
    })
}

// 获取园林巡查计划详细信息
export function getPatrolPlan(id) {
    return request({
        url: '/comp/patrolPlan/' + id,
        method: 'get'
    })
}

// 新增园林巡查计划
export function addPatrolPlan(data) {
    return request({
        url: '/comp/patrolPlan',
        method: 'post',
        data: data
    })
}

// 修改园林巡查计划
export function updatePatrolPlan(data) {
    return request({
        url: '/comp/patrolPlan',
        method: 'put',
        data: data
    })
}

// 删除园林巡查计划
export function delPatrolPlan(id) {
    return request({
        url: '/comp/patrolPlan/' + id,
        method: 'delete'
    })
}


